<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>川派麻将代理系统</title>
        <!-- Tell the browser to be responsive to screen width -->
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <!-- Bootstrap 3.3.6 -->
        <link rel="stylesheet" href="__ui_framework__/bootstrap-3.3.7-dist/css/bootstrap.min.css">
        <!-- Font Awesome -->
        <link rel="stylesheet" href="__ui_fonts__/Font-Awesome-4.7.0/css/font-awesome.min.css">
        <!-- Ionicons -->
        <link rel="stylesheet" href="__ui_fonts__/ionicons-2.0.1/css/ionicons.min.css">
        <!-- Theme style -->
        <link rel="stylesheet" href="__ui_adminlte__/css/AdminLTE.min.css">
        <!-- AdminLTE Skins. Choose a skin from the css/skins
             folder instead of downloading all of them to reduce the load. -->
        <link rel="stylesheet" href="__ui_adminlte__/css/skins/_all-skins.min.css">
        <style type="text/css">
            .main-header .sidebar-toggle:before {content:"\f17a"}
            .sidebar-menu .treeview-menu {display:block}
        </style>

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body class="hold-transition skin-blue sidebar-mini">
        <div class="wrapper">

            <header class="main-header">

                <!-- Logo -->
                <a href="{:url('home/index')}" class="logo">
                    <!-- mini logo for sidebar mini 50x50 pixels -->
                    <span class="logo-mini"><b>麻</b>将</span>
                    <!-- logo for regular state and mobile devices -->
                    <span class="logo-lg"><b>川派</b>麻将</span>
                </a>

                <!-- Header Navbar: style can be found in header.less -->
                <nav class="navbar navbar-static-top">
                    <!-- Sidebar toggle button-->
                    <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                        <span class="sr-only" title="Toggle navigation">切换导航</span>
                    </a>
                    <!-- Navbar Right Menu -->
                    <div class="navbar-custom-menu">
                        <ul class="nav navbar-nav">
                            <!-- User Account: style can be found in dropdown.less -->
                            <li class="dropdown user user-menu">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <img src='{$face_url}' class="user-image" >
                                    <span class="hidden-xs" title="Alexander Pierce">{$loginInfo.account}</span>
                                </a>
                                <ul class="dropdown-menu">
                                    <!-- User image -->
                                    <li class="user-header">
                                        <img src='{$face_url}' class="img-circle">

                                        <p title="Alexander Pierce - Web Developer">
                                            {$loginInfo.account} - 超级管理员
                                            <small title="Member since Nov. 2012">加入于{$loginInfo.registDate}</small>
                                        </p>
                                    </li>
                                    <!-- Menu Body -->
                                    <li class="user-body">
                                        <table class="table table-condensed">
                                            <tr><th>上次登录</th><td>2017-5-15 13:20:30<br />192.168.1.10</td></td></tr>
                                            <tr><th>登录次数</th><td>10次</td></tr>                                    
                                        </table>
                                    </li>
                                    <!-- Menu Footer-->
                                    <li class="user-footer">
                                        <div class="pull-left">
                                            <a href="{:url('user.user/profile')}" class="btn btn-default btn-flat xsui-btn-edit-dialog" title="个人资料" data-title="Profile">个人资料</a>
                                        </div>
                                        <div class="pull-right">
                                            <a href="{:url('login/logout')}" onclick="return confirm('您确定要注销登录吗?')" class="btn btn-default btn-flat" title="Sign out">注销登录</a>
                                        </div>
                                    </li>
                                </ul>
                            </li>
                            <!-- Control Sidebar Toggle Button -->
                            <li>
                            </li>
                        </ul>
                    </div>

                </nav>
            </header>
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="main-sidebar">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                        <div class="pull-left image">
                            <img src='{$face_url}' class="img-circle" alt="User Image">
                        </div>
                        <div class="pull-left info">
                            <p title="Alexander Pierce">管理员</p>
                            <a href="#" title="Online"><i class="fa fa-circle text-success"></i> 在线</a>
                            <a href="#" title="Online">房卡: {$loginInfo.gems}</a>
                        </div>
                    </div>
                    <!-- /.search form -->
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li class="header" title="MAIN NAVIGATION">主导航</li>
                        {foreach name="menus" item="vo"}
                        <li class="treeview">
                            <a href="#">
                                <i class="fa {$vo.ico}"></i> <span style="font-weight:bold">{$vo.text}</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <ul class="treeview-menu">
                                {foreach name="vo['children']" item="vo2"}
                                {if condition="empty($vo2['url'])"}
                                <li><a href="{:url($vo2['name'])}"><i class="fa fa-circle-o"></i> {$vo2.text}</a></li>
                                {else/}
                                <li><a href="{:url($vo2['url'])}"><i class="fa fa-circle-o"></i> {$vo2.text}</a></li>
                                {/if}
                                {/foreach}
                            </ul>
                        </li>
                        {/foreach}
                        <!-- 
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-user"></i> <span>代理</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/middleman"><i class="fa fa-circle-o"></i> 居间商管理</a></li>
                                <li><a href="/agency"><i class="fa fa-circle-o"></i> 代理管理</a></li>
                                <li><a href="/member"><i class="fa fa-circle-o"></i> 用户管理</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-user"></i> <span>管理员</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/admin"><i class="fa fa-circle-o"></i> 管理员管理</a></li>
                                <li><a href="/authrole"><i class="fa fa-circle-o"></i> 角色管理</a></li>
                                <li><a href="/authdepartment"><i class="fa fa-circle-o"></i> 部门管理</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-user"></i> <span>财务</span>
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/withdraw"><i class="fa fa-circle-o"></i> 提现管理</a></li>
                                <li><a href="/recharge"><i class="fa fa-circle-o"></i> 充值管理</a></li>
                                <li><a href="/transactiondetail"><i class="fa fa-circle-o"></i> 资金交易明细</a></li>
                                <li><a href="/diamondtransactiondetail"><i class="fa fa-circle-o"></i> 钻石交易明细</a></li>
                            </ul>
                        </li> 
                        -->
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>

            <!-- Content Wrapper. Contains page content -->            
            <div class="content-wrapper"></div>
            <!-- /.content-wrapper -->

            <footer class="main-footer">
                <div class="pull-right hidden-xs">
                    <b>Version</b> 1.0.0
                </div>
                <strong>Copyright &copy; 2017 <a href="#">川派麻将</a>.</strong> All rights
                reserved.
            </footer>

            <!-- Control Sidebar -->
            <aside class="control-sidebar control-sidebar-dark">
                <!-- Create the tabs -->
                <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
                    <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
                    <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
                </ul>
            </aside>
            <!-- /.control-sidebar -->
        </div>
        <!-- ./wrapper -->

        <!-- jQuery 2.2.3 -->
        <script src="__ui_plugins__/jquery/jquery-2.2.3.min.js"></script>
        <!-- Bootstrap 3.3.6 -->
        <script src="__ui_framework__/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
        <!-- FastClick -->
        <script src="__ui_plugins__/mouse/fastclick/fastclick.js"></script>
        <!-- AdminLTE App -->
        <script src="__ui_adminlte__/js/app.min.js"></script>
        <!-- SlimScroll 1.3.0 -->
        <script src="__ui_plugins__/form/slimScroll/jquery.slimscroll.min.js"></script>
        <!-- js-cookie 2.1.3 -->
        <script src="__ui_plugins__/cookie/js-cookie/js.cookie-2.1.3.min.js"></script>
        <!-- Layer 3.0.1 -->
        <script src="__ui_plugins__/dialog/layer-v3.0.1/layer.js"></script>
        <script src="__ui_adminlte__/js/xsIndex.js"></script>
        <script type="text/javascript">
                                                // init
                                                $(document).ready(function () {
                                                    xsIndex.initPage();
                                                })
        </script>
    </body>
</html>
